<h1>Register an Account</h1>

<p><span class="page_error"><? if(isset($page_error)) echo $page_error?></span></p>

<form id="register_form" name="register_form" method="post" action="register">
    <p><?=form_error('first_name')?>
        <label for="first_name">First Name:</label>
        <input type="text" name="first_name" id="first_name" maxlength="40" value="<?=set_value('first_name')?>"/></p>

    <p><?=form_error('last_name')?>
        <label for="last_name">Last Name:</label>
        <input type="text" name="last_name" id="last_name" maxlength="40" value="<?=set_value('last_name')?>"/></p>

    <p><?=form_error('email')?>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" maxlength="50" value="<?=set_value('email')?>"/></p>

    <p><?=form_error('confirm_email')?>
        <label for="confirm_email">Confirm Email:</label>
        <input type="text" name="confirm_email" id="confirm_email" maxlength="50" onkeyup="confirm_email_check()"/> <span id="confirm_email_span"></span></p>

    <p><?=form_error('password')?>
        <label for="password">Password:</label>
        <input type="password" name="password" id="password" onkeyup="password_check()"/> <span id="password_span" style="display: inline-block"></p>

    <p><?=form_error('confirm_password')?>
        <label for="confirm_password">Confirm Password:</label>
        <input type="password" name="confirm_password" id="confirm_password" onKeyUp="confirm_password_check()"/> <span id="confirm_password_span" style="display: inline-block"></span></p>
    
    <p><input type="submit" value="Register"/></p>
</form>